// import { Message } from 'element-ui';
import Vue from 'vue';
import VUeCookie from "vue-cookie";
import VueLazyload from "vue-lazyload";
import App from './App.vue';
import router from './router';
import store from './store';
import request from './utils/request';
import {message} from "@/utils/restMessage";

import ElementUI from 'element-ui'
// import 'element-theme-chalk';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(VUeCookie)

//图片懒加载
Vue.use(VueLazyload, {
  loading: '/imgs/loading-svg/loading-bars.svg',
})

Vue.use(ElementUI, { size: "" });

// Vue.use(Message)

//mock开关
const mock = false
if (mock) {
  require('./mock/api')
}

Vue.config.productionTip = false

Vue.prototype.request = request
// Vue.prototype.$message = Message
Vue.prototype.$message = message

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
